package com.lhd.service;

import com.lhd.po.Tag;

import java.util.List;

/**
 * Created by limi on 2017/10/16.
 */
public interface TagService {

    Integer saveTag(Tag type);

    Tag getTag(Long id);

    Tag getTagByName(String name);

    List<Tag> listTag(Integer page);

    List<Tag> listTag();

    List<Tag> listTag(String ids);

    Integer updateTag(Long id, Tag type);

    Long deleteTag(Long id);

    Integer countTag();

    void createBlogIdAndTagIds(Long blogId, List<Long> tags);

    List<Long> convertToList(String ids);

    void clearBlogIdAndTagId(Long blogId);

    Long getCountByTagId(Long tagId);

    List<Tag> listTagTop(Integer i);
}
